package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租房记录对象 gr_rent_record
 *
 * @author liuxusheng
 * @date 2022-01-05
 */
public class GrRentRecord extends BaseEntity
        {
private static final long serialVersionUID=1L;

    /** 主键 */
    private Long id;

    /** 小区名称 */
            @Excel(name = "小区名称")
    private String community;

    /** 租金 */
            @Excel(name = "租金")
    private String chummage;

    /** 付款方式 */
            @Excel(name = "付款方式")
    private Integer type;

    /** 押金 */
            @Excel(name = "押金")
    private String cashPledge;

    /** 水表 */
            @Excel(name = "水表")
    private Integer waterNum;

    /** 电表 */
            @Excel(name = "电表")
    private Integer electricityNum;

    /** 燃气表 */
            @Excel(name = "燃气表")
    private Integer gasNum;

    /** 成本 */
            @Excel(name = "成本")
    private Integer orderNum;

    /** 入住日期 */
            @JsonFormat(pattern = "yyyy-MM-dd")
            @Excel(name = "入住日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkInDate;

    /** 合同期限 */
            @JsonFormat(pattern = "yyyy-MM-dd")
            @Excel(name = "合同期限", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractPeriod;

    public void setId(Long id)
            {
            this.id = id;
            }

    public Long getId()
            {
            return id;
            }
    public void setCommunity(String community)
            {
            this.community = community;
            }

    public String getCommunity()
            {
            return community;
            }
    public void setChummage(String chummage)
            {
            this.chummage = chummage;
            }

    public String getChummage()
            {
            return chummage;
            }
    public void setType(Integer type)
            {
            this.type = type;
            }

    public Integer getType()
            {
            return type;
            }
    public void setCashPledge(String cashPledge)
            {
            this.cashPledge = cashPledge;
            }

    public String getCashPledge()
            {
            return cashPledge;
            }
    public void setWaterNum(Integer waterNum)
            {
            this.waterNum = waterNum;
            }

    public Integer getWaterNum()
            {
            return waterNum;
            }
    public void setElectricityNum(Integer electricityNum)
            {
            this.electricityNum = electricityNum;
            }

    public Integer getElectricityNum()
            {
            return electricityNum;
            }
    public void setGasNum(Integer gasNum)
            {
            this.gasNum = gasNum;
            }

    public Integer getGasNum()
            {
            return gasNum;
            }
    public void setOrderNum(Integer orderNum)
            {
            this.orderNum = orderNum;
            }

    public Integer getOrderNum()
            {
            return orderNum;
            }
    public void setCheckInDate(Date checkInDate)
            {
            this.checkInDate = checkInDate;
            }

    public Date getCheckInDate()
            {
            return checkInDate;
            }
    public void setContractPeriod(Date contractPeriod)
            {
            this.contractPeriod = contractPeriod;
            }

    public Date getContractPeriod()
            {
            return contractPeriod;
            }

@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id",getId())
            .append("community",getCommunity())
            .append("chummage",getChummage())
            .append("type",getType())
            .append("cashPledge",getCashPledge())
            .append("waterNum",getWaterNum())
            .append("electricityNum",getElectricityNum())
            .append("gasNum",getGasNum())
            .append("orderNum",getOrderNum())
            .append("checkInDate",getCheckInDate())
            .append("contractPeriod",getContractPeriod())
            .append("createBy",getCreateBy())
            .append("createTime",getCreateTime())
            .append("updateBy",getUpdateBy())
            .append("updateTime",getUpdateTime())
            .append("remark",getRemark())
        .toString();
        }
        }
